package com.feixiu.service.impl;

import com.feixiu.dao.StationDao;
import com.feixiu.pojo.Station;
import com.feixiu.service.StationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Component
public class StationServiceImpl implements StationService {
    @Autowired
    private StationDao dao;
    @Override
    public List<Station> getAllStation() {
        List<Station> list=dao.selectAll();
        return list;
    }
}
